package com.practice.designMode.responsibilityChain;

import com.practice.designMode.responsibilityChain.annotion.Length;
import com.practice.designMode.responsibilityChain.annotion.Max;
import com.practice.designMode.responsibilityChain.annotion.Min;

public class User {

    @Length(10)
    private String name;

    @Max(1)
    @Min(10)
    private Integer age;

    public User(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}

